class cat:
    def __init__(self, name, age):
        self.name = name
        self.age = age
    def speak(self):
         print(self.name, self.age)

cat1=cat("李慧成", 24)
print(cat1.name, cat1.age)

cat1.speak()